<?php
foreach ($currTree as $v){ ?>
    <li>
        <span style="<?php echo $v['sex']=='女'?'color:#ff1493':'' ?>"><i class="icon-minus-sign"></i><?php echo $v["name"] ?></span>
        <?php echo "第".$v["dc"]."代," ?><b><?php echo $v["zibei"] ?></b>字辈
        <a href="/Index/Detail?id=<?php echo $v["id"] ?>" target="_blank">详细</a>
        <?php if(isset($v['children'])){?>
        <ul>
            <?php W('Tree2',['currTree'=>$v['children']]);?>
        </ul>
        <?php } ?>
    </li>
<?php } ?>
